function grin(a) {
    var b;
    a = " " + a + " ";
    if (document.getElementById("comment") && "textarea" == document.getElementById("comment").type) b = document.getElementById("comment");
    else return !1;
    if (document.selection) b.focus(), sel = document.selection.createRange(), sel.text = a, b.focus();
    else if (b.selectionStart || "0" == b.selectionStart) {
        var d = b.selectionEnd,
            e = d;
        b.value = b.value.substring(0, b.selectionStart) + a + b.value.substring(d, b.value.length);
        e += a.length;
        b.focus();
        b.selectionStart = e;
        b.selectionEnd = e
    } else b.value += a, b.focus()
}
window.console && window.console.log && console.log("比较喜欢这个播放器,拿来玩玩,不作为商业用途");
function isNum(a) {
    return /^[0-9]+$/.test(a)
}
jQuery(document).ready(function() {
    pjaxdone()
});

function b2top(a, b, d) {
    if (10 >= b && 0 <= b) {
        var e = 100 * b;
        $(a).css({
            backgroundPosition: "0 -" + e + "px"
        });
        setTimeout("b2top('" + a + "'," + (d ? b + 1 : b - 1) + "," + d + ")", 50)
    }
}

function get_emailinfo() {
    if ("" != jQuery("#email").val())
        if (-1 != jQuery("#email").val().indexOf("qq.com")) {
            jQuery("#realtime_avatar").attr("src", "../content/templates/free-red/images/pjax_loading.gif");
            var a = jQuery("#email").val().replace("@qq.com", "");
            isNum(a) ? jQuery("#realtime_avatar").attr("src", "http://q1.qlogo.cn/g?b=qq&nk=" + a + "&s=40") : jQuery("#realtime_avatar").attr("src", "https://secure.gravatar.com/avatar.php?gravatar_id=" + hex_md5(jQuery("#email").val())) + "&size=32&d=monsterid&r=G&default=http://limh.me/content/templates/limh.me/gravatar/default.jpg"
        } else "" != jQuery("#email").val() && (jQuery("#realtime_avatar").attr("src", "../content/templates/free-red/images/pjax_loading.gif"), jQuery("#realtime_avatar").attr("src", "https://secure.gravatar.com/avatar.php?gravatar_id=" + hex_md5(jQuery("#email").val())) + "&size=32&d=identicon&r=G&default=http://limh.me/content/templates/limh.me/gravatar/default.jpg")
}

function get_qq_done() {
    $("#usb").removeAttr("disabled")
}

function get_qqinfo() {
    if ("" != jQuery("#nickqq").val()) {
        var a = jQuery("#nickqq").val();
        isNum(a) ? ($("#usb").attr("disabled", "disabled"), $("#nickname").val("\u6635\u79f0\u83b7\u53d6\u4e2d..."), jQuery("#realtime_avatar").attr("src", "../content/templates/free-red/images/pjax_loading.gif"), $.ajax({
            type: "GET",
            url: "../api/qq.php?qq=" + a,
            data: "",
            cache: !1,
            dataType: "html",
            success: function(a) {
                "" != a ? $("#nickname").val(a) : $("#nickname").val("\u533f\u540d");
                get_qq_done()
            },
            error: function(a, d, e) {
                $("#nickname").val("\u6635\u79f0\u83b7\u53d6\u5931\u8d25");
                get_qq_done()
            }
        }), jQuery("#realtime_avatar").attr("src", "http://q1.qlogo.cn/g?b=qq&nk=" + a + "&s=40"), $("#email").val(a + "@qq.com"), $("#comurl").val("http://user.qzone.qq.com/" + a)) : (wenkmTips.show("\u4f60\u4ed6\u55b5\u5728\u9017\u6211\uff1f[" + a + "]\u662fQQ\u53f7\u7801\uff1f\u8bf7\u8f93\u5165\u6570\u5b57\uff01"), $("#nickqq").val(""))
    }
}

function AutoScroll(a) {
    $(a).find("ul:first").animate({
        marginTop: "-10px"
    }, 300, function() {
        $(this).css({
            marginTop: "0px"
        }).find("li:first").appendTo(this)
    })
}
$(function() {
    $t = setInterval('AutoScroll(".text")', 3E3);
    $(".text").hover(function() {
        clearInterval($t)
    }, function() {
        $t = setInterval('AutoScroll(".text")', 5E3)
    })
});

function tooltip() {
    $("a,div,li,h3,h4,img,i").each(function() {
        $("#tooltip").remove();
        if (this.title) {
            var a = this.title;
            $(this).mouseover(function(b) {
                this.title = "";
                $("body").append('<div id="tooltip">' + a + "</div>");
                $("#tooltip").css({
                    left: b.pageX - 15 + "px",
                    top: b.pageY + 30 + "px",
                    opacity: "0.8"
                }).fadeIn(250)
            }).mouseout(function() {
                this.title = a;
                $("#tooltip").remove()
            }).mousemove(function(a) {
                $("#tooltip").css({
                    left: a.pageX - 15 + "px",
                    top: a.pageY + 30 + "px"
                })
            })
        }
    })
}(function(a) {
    a.fn.WIT_SetTab = function(b) {
        function d(a) {
            b.Field.filter(":visible").fadeOut(b.OutTime, function() {
                b.Field.eq(a).fadeIn(b.InTime).siblings().hide()
            });
            b.Nav.eq(a).addClass(b.CurCls).siblings().removeClass(b.CurCls)
        }
        b = a.extend({
            Nav: null,
            Field: null,
            K: 0,
            CurCls: "cur",
            Auto: !1,
            AutoTime: 5E3,
            OutTime: 100,
            InTime: 150,
            CrossTime: 60
        }, b || {});
        var e = null,
            c = !1,
            f = null;
        d(b.K);
        b.Nav.hover(function() {
            b.K = b.Nav.index(this);
            b.Auto && clearInterval(f);
            c = a(this).hasClass(b.CurCls);
            e = setTimeout(function() {
                c || d(b.K)
            }, b.CrossTime)
        }, function() {
            clearTimeout(e);
            b.Ajax && b.AjaxFun();
            b.Auto && (f = setInterval(function() {
                b.K++;
                d(b.K);
                b.K == b.Field.size() && (d(0), b.K = 0)
            }, b.AutoTime))
        }).eq(0).trigger("mouseleave")
    }
})(jQuery);
$(function() {
    $(document).WIT_SetTab({
        Nav: $("#J_setTabANav>ul>li"),
        Field: $("#J_setTabABox>div>ul"),
        CurCls: "hover"
    });
    $(document).WIT_SetTab({
        Nav: $("#J_setTabBNav>ul>li"),
        Field: $("#J_setTabBBox>div>ul"),
        Auto: !0,
        CurCls: "hover"
    })
});

function size(a) {
    a.innerHTML = "A" == a.innerHTML ? "A+" : "A+" == a.innerHTML ? "A-" : "A"
}

function embedImage() {
    var a = prompt("\u8bf7\u8f93\u5165\u56fe\u7247\u7684 URL \u5730\u5740\uff08\u5305\u542bhttp://\uff09:", "http://");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[img]" + a + "[/img]")
}

function strong() {
    var a = prompt("\u8bf7\u8f93\u5165\u9700\u8981\u52a0\u7c97\u7684\u6587\u5b57:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[strong]" + a + "[/strong]")
}

function em() {
    var a = prompt("\u8bf7\u8f93\u5165\u9700\u8981\u659c\u4f53\u7684\u6587\u5b57:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[em]" + a + "[/em]")
}

function del() {
    var a = prompt("\u8bf7\u8f93\u5165\u9700\u8981\u5220\u9664\u7ebf\u7684\u6587\u5b57:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[del]" + a + "[/del]")
}

function url1() {
    var a = prompt("\u8bf7\u8f93\u5165\u94fe\u63a5\u7684 URL \u5730\u5740\uff08\u5305\u542bhttp://\uff09:", "http://");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[url]" + a + "[/url]")
}

function underline() {
    var a = prompt("\u8bf7\u8f93\u5165\u9700\u8981\u4e0b\u5212\u7ebf\u7684\u6587\u5b57:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[u]" + a + "[/u]")
}

function code() {
    var a = prompt("\u8bf7\u7c98\u8d34\u4ee3\u7801:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[code]" + a + "[/code]")
}

function quote() {
    var a = prompt("\u8bf7\u7c98\u8d34\u5f15\u7528\u5185\u5bb9:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[blockquote]" + a + "[/blockquote]")
}

function qq() {
    var a = prompt("\u8bf7\u8f93\u5165QQ\u53f7:");
    a && (document.getElementById("comment").value = document.getElementById("comment").value + "[qq]" + a + "[/qq]")
}

function embedSmiley() {
    "none" == $(".smilebg").css("display") ? $(".smilebg").slideDown(200) : $(".smilebg").slideUp(200)
}

function checkLength(a) {
    if (250 < a.value.length) return wenkmTips.show("\u60a8\u586b\u5199\u7684\u8bc4\u8bba\u5185\u5bb9\u5df2\u7ecf\u8d85\u51fa250\u4e2a\u5b57\uff01"), a.value = a.value.substring(0, 250), !1;
    a = 250 - a.value.length;
    document.getElementById("num").innerHTML = a.toString();
    return !0
}

function showreply() {
    $(".form").slideToggle(500, "easeOutExpo")
}

function commentReply(a, b) {
    var d = document.getElementById("comment-post");
    b.style.display = "none";
    document.getElementById("cancel-reply").style.display = "";
    document.getElementById("comment-pid").value = a;
    b.parentNode.parentNode.appendChild(d)
}

function cancelReply() {
    var a = document.getElementById("comment-place"),
        b = document.getElementById("comment-post");
    document.getElementById("comment-pid").value = 0;
    $(".reply a").css({
        display: ""
    });
    document.getElementById("cancel-reply").style.display = "none";
    a.appendChild(b)
}
$(document).ready(function(a) {
    a(function() {
        a("body").dblclick(function() {
            var b = a(window),
                d = b.scrollTop(),
                e = (d - 0) / 5,
                c = d,
                f = setInterval(function() {
                    0 >= (c - 0) * (d - 0) ? (clearInterval(f), d = c = 0, b.scrollTop(0)) : (c = d, b.scrollTop(d -= e))
                }, 20),
                g = a("#top").children(":first");
            g.stop().show().animate({}, function() {
                a(this).css({})
            });
            g.parent().append(g)
        });
        a("#top").dblclick(function(a) {
            a.stopPropagation()
        })
    })
});

function checkReg() {
    var a = $("input[name=username]").val().replace(/(^\s*)|(\s*$)/g, ""),
        b = $("input[name=password]").val().replace(/(^\s*)|(\s*$)/g, ""),
        d = $("input[name=password2]").val().replace(/(^\s*)|(\s*$)/g, "");
    $("input[name=imgcode]").val().replace(/(^\s*)|(\s*$)/g, "");
    if (a.match(/\s/) || b.match(/\s/)) return alert("\u7528\u6237\u540d\u548c\u5bc6\u7801\u4e2d\u4e0d\u80fd\u6709\u7a7a\u683c"), !1;
    if (4 > a.length || 4 > b.length) return alert("\u7528\u6237\u540d\u548c\u5bc6\u7801\u90fd\u4e0d\u80fd\u5c0f\u4e8e4\u4f4d\uff01"), !1;
    if (b != d) return alert("\u4e24\u6b21\u8f93\u5165\u5bc6\u7801\u4e0d\u76f8\u7b49\uff01"), !1
}

function pjaxdone() {
    function a() {
        $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "block");
        new Audio;
        var a = $("#wenkmPlayeradmin"),
            b = $(".song-list .lists", a);
        $albumList = $(".album-list", a);
        cur = "current";
        url = "http://free.limh.me/user/" + file + "/";
        albumId = 0;
        $.ajax({
            url: url + "music.list",
            type: "GET",
            dataType: "script",
            success: function() {
                wenkmPlayeradmin.playList.creat.album()
            }
        });
        wenkmPlayeradmin.playList = {
            creat: {
                album: function() {
                    for (var b = wenkmList.length, e = "", g = 0; g < b; g++) e += '<li><span class="song_album">\u9ed8\u8ba4\u4e13\u8f91\u540d\uff1a<input style="width:465px" type="text" value="' + wenkmList[g].song_album + '"/></span> <span class="song_album1">\u4e13\u8f91\u4ecb\u7ecd\uff1a<input style="width:465px" type="text" value="' + wenkmList[g].song_album1 + '"/></span></li>';
                    $(".list").html(e);
                    $(this).hasClass(cur) ? wenkmPlayeradmin.playList.creat.song(0, !0) : wenkmPlayeradmin.playList.creat.song(0, !1);
                    a.addClass("showSongList");
                    songTotal = wenkmList[albumId].song_id.length
                },
                song: function(a, d) {
                    songTotal = wenkmList[a].song_id.length;
                    for (var g = "", k = 0; k < songTotal; k++) g += "<li>\u7b2c" + (k + 1) + '\u9996 - \u6b4c\u540d\uff1a<span class="songname"><input style="width:435px" type="text" value="' + wenkmList[a].song_name[k].replace(k + 1 + "#", "") + '"/></span> \u6b4c\u66f2ID\uff1a<span class="songid"><input style="width:435px" type="text" value="' + wenkmList[a].song_id[k].replace(k + 1 + "#", "") + '"/></span> <button class="del">[\u5220\u9664]</button></li>';
                    $(b).html(g);
                    $(".tip").html("\u6b4c\u5355\u83b7\u53d6\u6210\u529f\uff01\u4f60\u53ef\u4ee5\u4f7f\u7528\u9f20\u6807\u62d6\u62fd\u987a\u5e8f\u6765\u6392\u5217\uff0c\u4efb\u4f55\u4fee\u6539\u4e00\u5b9a\u8981\u70b9\u51fb\uff1a");
                    $(".load,.blue").hide();
                    $(".saves,.top_title,.add_lists").show();
                    $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none")
                }
            }
        }
    }

    function b() {
        $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "block");
        $.ajax({
            url: addurls,
            dataType: "jsonp",
            type: "GET",
            data: {
                user: user,
                id: $(".add_listurl input").val().replace("http://www.xiami.com/song/", "").replace("www.xiami.com/song/", "").replace("http://music.163.com/#/song?id=", "").replace("music.163.com/#/song?id=", "").replace("xm", "").replace("wy", "").replace(" ", ""),
                key: key
            },
            success: function(a) {
                for (var b = document.getElementsByTagName("input"), c = 0; c < b.length - 1; c++) b[c].value == a.song_id && alert("\u4ece" + addname + "\u6dfb\u52a0\u7684\u300a" + a.song_name + "\u300b\u548c\u7b2c\u201c" + ([c] - 1) / 2 + "\u201d\u9996\u91cd\u590d\uff01");
                shou = [c] / 2 - 1;
                $(".song-list .lists").append('<li><span class="songname"> \u7b2c' + [shou] + '\u9996 - \u6b4c\u540d\uff1a<input type="text" style="width:435px;color:#0c0" value="' + a.song_name + '"/></span> <span class="songid">\u6b4c\u66f2ID\uff1a<input type="text" style="width:435px;color:#0c0" value="' + a.song_id + '"/></span> <button class="del">[\u5220\u9664]</button> </li>');
                $(".add_listurl input").val("");
                $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
                alert("\u4ece" + addname + "\u6dfb\u52a0\u300a" + a.song_name + "\u300b\u5230\u7b2c\u201c" + ([c] - 2) / 2 + "\u201d\u9996\u6210\u529f\uff01")
            },
            error: function(a, b, c) {
                $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
                alert("\u81ea\u52a8\u83b7\u53d6\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u5730\u5740\u586b\u5199\u65e0\u8bef\uff0c\u6216\u9009\u62e9\u4e0a\u65b9\u624b\u52a8\u6dfb\u52a0\u529f\u80fd\uff01")
            }
        })
    }
    $("[pjax]").unbind("click");
    $(".open2").click(function() {
        $(".tijiao").slideDown(300)
    });
    $(function() {
        $("div ul").show();
        $(".box h3").click(function() {
            $(this).next("ul").slideToggle("hide")
        })
    });
    $(".close2 a").click(function() {
        $(".tijiao").slideUp(300)
    });
    $(".post-title a").hover(function() {
        $(this).stop().animate({
            marginLeft: "4px"
        }, "fast")
    }, function() {
        $(this).stop().animate({
            marginLeft: "0px"
        }, "fast")
    });
    $(document).WIT_SetTab({
        Nav: $("#J_setTabANav>ul>li"),
        Field: $("#J_setTabABox>div>ul"),
        CurCls: "hover"
    });
    $(document).WIT_SetTab({
        Nav: $("#J_setTabBNav>ul>li"),
        Field: $("#J_setTabBBox>div>ul"),
        Auto: !0,
        CurCls: "hover"
    });
    $(".dropdown").hover(function() {
        $(this).children(".sub-menu").slideDown(200)
    }, function() {
        $(this).children(".sub-menu").slideUp(200)
    });
    $(function() {
        jQuery(function() {
            function a(b, d, e) {
                if (document.selection) b.focus(), sel = document.selection.createRange(), e ? sel.text = d + sel.text + e : sel.text = d, b.focus();
                else if (b.selectionStart || "0" == b.selectionStart) {
                    var c = b.selectionStart,
                        l = b.selectionEnd,
                        h = l;
                    e ? b.value = b.value.substring(0, c) + d + b.value.substring(c, l) + e + b.value.substring(l, b.value.length) : b.value = b.value.substring(0, c) + d + b.value.substring(l, b.value.length);
                    e ? h += d.length + e.length : h += d.length - l + c;
                    c == l && e && (h -= e.length);
                    b.focus();
                    b.selectionStart = h;
                    b.selectionEnd = h
                } else b.value += d + e, b.focus()
            }
            var b = (new Date).toLocaleTimeString(),
                c = document.getElementById("comment") || 0;
            window.SIMPALED = {};
            window.SIMPALED.Editor = {
                qiandao: function() {
                    a(c, "[blockquote]\u7b7e\u5230\u6210\u529f\uff01\u7b7e\u5230\u65f6\u95f4\uff1a" + b, "\uff0c\u6bcf\u65e5\u6253\u5361\uff0c\u751f\u6d3b\u66f4\u7cbe\u5f69\u54e6~[/blockquote]")
                },
                good: function() {
                    a(c, "[blockquote][F1] \u597d\u7f9e\u5c04\uff0c\u6587\u7ae0\u771f\u7684\u597d\u8d5e\u554a\uff0c\u9876\u535a\u4e3b\uff01[/blockquote]")
                },
                bad: function() {
                    a(c, "[blockquote][F14] \u6709\u70b9\u770b\u4e0d\u61c2\u54e6\uff0c\u5e0c\u671b\u4e0b\u6b21\u5199\u7684\u7b80\u5355\u6613\u61c2\u4e00\u70b9\uff01[/blockquote]")
                }
            }
        })
    });
    $body = window.opera ? "CSS1Compat" == document.compatMode ? $("html") : $("body") : $("html,body");
    $("a[href*=#]").click(function() {
        if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
            var a = $(this.hash),
                a = a.length && a || $("[name=" + this.hash.slice(1) + "]");
            if (a.length) return a = a.offset().top, $("html,body").animate({
                scrollTop: a
            }), !1
        }
    });
    $(window).scroll(function() {
        200 < $(this).scrollTop() ? $(".backtop,.link-back2top").fadeIn() : $(".backtop,.link-back2top").fadeOut()
    });
    $(".backtop").hover(function() {
        b2top(".backtop", 0, !0)
    }, function() {
        b2top(".backtop", 3)
    }).click(function() {
        $("body,html").animate({
            scrollTop: 0
        }, 600, function() {});
        b2top(".backtop", 3)
    });
    $(".archives").find("ul").hide();
    $(".archives").find("ul:first,ul:eq(1)").show();
    $(".archives h4").click(function() {
        $(this).next("ul").slideToggle("fast")
    });
    $("#newlog li a,#randlog li a,#hotlog li a,#record li a,#blogsort li a,.tab_box li a,#link li a").hover(function() {
        $(this).stop().animate({
            marginLeft: "4px"
        }, "fast")
    }, function() {
        $(this).stop().animate({
            marginLeft: "0px"
        }, "fast")
    });
    $(".open-nav,.close-nav").click(function() {
        $("#mmenu").hasClass("has-opened") ? $("#mmenu").removeClass("has-opened") : $("#mmenu").addClass("has-opened")
    });
    $("#mmenu .catbtn ul").hide();
    $("#mmenu .catbtnx").click(function() {
        $(this).next("ul").slideToggle("fast")
    });
    $("#reset").click(function() {
        $(".num").text("250");
        $(".zujian").show()
    });
    $(function() {
        jQuery(function(a) {
            a("a[href$=jpg],a[href$=gif],a[href$=png],a[href$=jpeg],a[href$=bmp]").addClass("highslide").each(function() {
                this.onclick = function() {
                    return hs.expand(this)
                }
            })
        })
    });
    $(".smile").click(function() {
        $(".smilebg").slideUp(200)
    });
    $("#commentform").submit(function() {
        var a = $("#commentform").serialize();
        $("#comment").attr("disabled", "disabled");
        $(".ajaxloading").show();
        $("#usb,.nop").hide();
        $.post($("#commentform").attr("action"), a, function(a) {
            var b = /<div class=\"main\">[\r\n]*<p>(.*?)<\/p>/i;
            b.test(a) ? ($(".error").html(a.match(b)[1]).show().fadeOut(2500), $(".ajaxloading").hide(), $("#usb,.nop").show()) : (b = $("input[name=pid]").val(), cancelReply(), $("[name=comment]").val(""), $(".commentlist").html($(a).find(".commentlist").html()), 0 != b ? (a = window.opera ? "CSS1Compat" == document.compatMode ? $("html") : $("body") : $("html,body"), a.animate({
                scrollTop: $("#comment-" + b).offset().top - 20
            }, "normal", function() {
                $(".ajaxloading").hide();
                $("#usb").show();
                $(".tijiao").slideUp(300)
            })) : (a = window.opera ? "CSS1Compat" == document.compatMode ? $("html") : $("body") : $("html,body"), a.animate({
                scrollTop: $(".commentlist").offset().top - 20
            }, "normal", function() {
                $(".ajaxloading").hide();
                $("#usb").show();
                $(".tijiao").slideUp(300)
            })));
            $("a[href*=#]").click(function() {
                if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) {
                    var a = $(this.hash),
                        a = a.length && a || $("[name=" + this.hash.slice(1) + "]");
                    if (a.length) return a = a.offset().top, $("html,body").animate({
                        scrollTop: a
                    }), !1
                }
            });
            $("#comment").attr("disabled", !1)
        });
        return !1
    });
    $(function() {
        jQuery(function() {
            var a = $(".search input"),
                b = $(".search button"),
                c = $(".search .result"),
                f = $(".search .result div");
            a.focus(function() {
                "\u8f93\u5165\u5173\u952e\u5b57\u81ea\u52a8\u5168\u6587\u641c\u7d22..." == a.val() && a.val("")
            });
            a.blur(function() {
                "" == a.val() && (a.val("\u8f93\u5165\u5173\u952e\u5b57\u81ea\u52a8\u5168\u6587\u641c\u7d22..."), b.stop().fadeOut())
            });
            a.keydown(function() {
                clearTimeout("t")
            }).keypress(function() {
                clearTimeout("t")
            });
            a.keyup(function() {
                0 < a.val().length ? (b.fadeIn(), 1 < a.val().length && (b.addClass("load"), t = setTimeout(function() {
                    f.load("/pjaxsearch.php?k=" + a.val(), function() {
                        c.fadeIn();
                        c.find("h2 span").html(a.val());
                        b.removeClass("load")
                    })
                }, 1E3))) : (b.stop().fadeOut(), c.stop().fadeOut())
            });
            b.click(function() {
                b.stop().fadeOut();
                c.stop().fadeOut()
            });
            c.click(function() {
                c.stop().fadeOut();
                a.val("\u8f93\u5165\u5173\u952e\u5b57\u81ea\u52a8\u5168\u6587\u641c\u7d22...");
                b.stop().fadeOut()
            })
        })
    });
    $(function() {
        jQuery(function() {
            jQuery("#nickqq").blur(function() {
                get_qqinfo()
            })
        })
    });
    $(function() {
        jQuery(function() {
            jQuery("#email").blur(function() {
                get_emailinfo()
            })
        })
    });
    $(".load").on("click", function() {
        a()
    });
    $(".addmusic").on("click", function() {
        for (var a = document.getElementsByTagName("input"), b = 0; b < a.length - 3; b++);
        shou = [b] / 2;
        $(".song-list .lists").append('<li><span class="songname"> \u7b2c' + shou + '\u9996 - \u6b4c\u540d\uff1a<input type="text" style="width:435px;color:#0c0" value="' + $(".add_list1 input").val() + '"/></span> <span class="songid">\u6b4c\u66f2ID\uff1a<input type="text" style="width:435px;color:#0c0" value="' + $(".add_list2 input").val() + '"/></span> <button class="del">[\u5220\u9664]</button> </li>');
        $(".add_list1 input,.add_list2 input").val("")
    });
    $(".addurl").on("click", function() {
        0 <= $(".add_listurl input").val().indexOf("www.xiami.com/song") ? (addurls = "http://free.limh.me/newapi/addapi/xiaminame.php", addname = "\u867e\u7c73\u97f3\u4e50", b()) : 0 <= $(".add_listurl input").val().indexOf("music.163.com/#/song") ? (addurls = "http://free.limh.me/newapi/addapi/163name.php", addname = "\u7f51\u6613\u4e91\u97f3\u4e50", b()) : 0 <= $(".add_listurl input").val().indexOf("xm") ? (addurls = "http://free.limh.me/newapi/addapi/xiaminame.php", addname = "\u867e\u7c73\u97f3\u4e50", b()) : 0 <= $(".add_listurl input").val().indexOf("wy") ? (addurls = "http://free.limh.me/newapi/addapi/163name.php", addname = "\u7f51\u6613\u4e91\u97f3\u4e50", b()) : (alert("\u5730\u5740\u6709\u8bef\uff01\u8bf7\u53c2\u8003\u4e0b\u65b9\u63d0\u793a\u6765\u586b\u5199\uff01"), $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none"))
    });
    $(document).on("click", ".del", function() {
        $this = $(this);
        $this.parent("li").remove()
    });
    $(".saves").on("click", function() {
        $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "block");
        var a = "";
        $(".song_album input").each(function(b, c) {
            a += $(this).val() + "|"
        });
        var a = a.substr(0, a.length - 1),
            b = "";
        $(".song_album1 input").each(function(a, c) {
            b += $(this).val() + "|"
        });
        var b = b.substr(0, b.length - 1),
            c = "";
        $(".songname input").each(function(a, b) {
            c += $(this).val() + "|"
        });
        var c = c.substr(0, c.length - 1),
            f = "";
        $(".songid input").each(function(a, b) {
            f += $(this).val() + "|"
        });
        f = f.substr(0, f.length - 1);
        $.ajax({
            url: "music.html",
            type: "POST",
            data: {
                user: user,
                key: key,
                file: file,
                data: 'var wenkmList=[{song_album:"' + a + '",song_album1:"' + b + '",song_file:"/",song_name:"' + c + '".split("|"),song_id:"' + f + '".split("|")}];'
            },
            success: function(a) {
                $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
                $(".save").html(a)
            },
            error: function() {
                $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
                alert("\u4fdd\u5b58\u5931\u8d25\uff01\u8bf7\u91cd\u8bd5...")
            }
        });
        return !1
    });
    $(".lists").dragsort();
    tooltip();
    $(".tt,.myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
    pjaxstart()
}

function pjaxstart() {
    navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i) || $(function() {
        var a = function(a) {
                $.ajax({
                    url: a,
                    error: function() {
                        $(".tt,.myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "none");
                        setTimeout(function() {
                            wenkmTips.show("\u6211\u53bb\uff01" + history.state.title + " - \u52a0\u8f7d\u5931\u8d25\uff01\u8bf7\u91cd\u8bd5...")
                        }, 1E3)
                    }
                }).done(function(a) {
                    $("#lmhblog").html($(a).filter("#lmhblog").html());
                    window.location.hash ? $("html,body").stop().animate({
                        scrollTop: $(window.location.hash).offset().top
                    }, 500) : $("html,body").stop().animate({
                        scrollTop: 0
                    }, 0);
                    $("[pjax],#pagenavi a").unbind("click");
                    pjaxdone()
                })
            },
            b = function() {
                $("[pjax],#pagenavi a").on("click", function() {
                    $(".myhk_pjax_loading_frame,.myhk_pjax_loading").css("display", "block");
                    var b = $(this).attr("href"),
                        e = $(this).attr("pjax");
                    history.pushState({
                        url: b,
                        title: e
                    }, e, b);
                    document.title = e + " - \u660e\u6708\u6d69\u7a7a\u97f3\u4e50\u64ad\u653e\u5668-\u514d\u8d39\u7248";
                    a(b);
                    return !1
                })
            };
        $(function() {
            history.pushState ? (b(), $(window).on("popstate", function() {
                history.state ? (document.title = history.state.title, a(history.state.url)) : history.pushState({
                    url: window.location.pathname,
                    title: document.title + " - \u660e\u6708\u6d69\u7a7a\u97f3\u4e50\u64ad\u653e\u5668-\u514d\u8d39\u7248"
                }, document.title, window.location.pathname)
            })) : $(".tt").css("display", "block")
        })
    })
};
